package com.relytosoft.mizar.analyze.common.config;

import com.relytosoft.mizar.analyze.common.config.properties.MizarAnalyzeProperties;
import feign.RequestInterceptor;
import feign.RequestTemplate;

import javax.annotation.Resource;

/**
 * StrategyFeignInterceptor
 *
 * @Author SunLi
 * @Date: 2022/5/17 17:34
 * @Version 1.0
 */
public class StrategyFeignInterceptor implements RequestInterceptor {

    @Resource
    private MizarAnalyzeProperties mizarAnalyzeProperties;

    @Override
    public void apply(RequestTemplate requestTemplate) {
        requestTemplate.query("key", mizarAnalyzeProperties.getKey());
    }
}
